//
//  OpenUrlVC.m
//  QinghaiTourism
//
//  Created by xujingjing on 16/6/15.
//  Copyright © 2016年 xujingjing. All rights reserved.
//

#import "OpenUrlVC.h"

@interface OpenUrlVC ()

@end

@implementation OpenUrlVC

- (void)viewDidLoad {
    [super viewDidLoad];
    self.title = @"详情";
  //  [self setClearNav];

    
//    self.navigationController.navigationBarHidden = NO;
//    [[UINavigationBar appearance] setBarTintColor:[UIColor clearColor]];

    UIWebView *webview = [[UIWebView alloc]initWithFrame:CGRectMake(0, 0, kWindowWidth, SCREENH_HEIGHT)];
    NSURL *url = _urlstr;
    NSURLRequest *request = [NSURLRequest requestWithURL:url];
    [webview loadRequest:request];
    [self.view addSubview:webview];


}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}
-(void)setClearNav{
    // 1、设置视图背景颜色
    self.view.backgroundColor =[UIColor whiteColor];
    self.view.alpha = 1;
    
    // 2、设置导航栏标题属性：设置标题颜色
    [[UINavigationBar appearance] setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];

    // 3、设置导航栏前景色：设置item指示色
    [[UINavigationBar appearance] setBarTintColor:[UIColor whiteColor]];
    
    // 4、设置导航栏半透明
    [[UINavigationBar appearance] setTranslucent:YES];
    
    // 5、设置导航栏背景图片
    [[UINavigationBar appearance] setBackgroundImage:nil forBarMetrics:UIBarMetricsDefault];
//    self.navigationController?.navigationBar.setBackgroundImage(UIImage(), forBarMetrics: UIBarMetrics.Default)
//    
    // 6、设置导航栏阴影图片
//    self.navigationController?.navigationBar.shadowImage = UIImage()
/*
 如果在导航栏全透明效果下，你需要导航栏的分界线，你可以不设置导航栏的shadowImage
 
 */

}
/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
